/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author dongyushi
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-12-27 下午5:03:08          dongyushi        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Entity
@Table(name = "PROPERTY_DISPLAY")
public class PropertyDisplay implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 5161593697189128673L;

    private Long id;
    private Long resId;
    private Long resType;
    private Long propId;
    private String displayName;

    public PropertyDisplay() {
    }

    public PropertyDisplay(Long id, Long resId, Long resType, Long propId, String displayName) {
        this.id = id;
        this.resId = resId;
        this.resType = resType;
        this.propId = propId;
        this.displayName = displayName;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "PROPERTY_DISPLAY_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "RES_TYPE", precision = 18, scale = 0)
    public Long getResType() {
        return resType;
    }

    public void setResType(Long resType) {
        this.resType = resType;
    }

    @Column(name = "PROP_ID", precision = 18, scale = 0)
    public Long getPropId() {
        return propId;
    }

    public void setPropId(Long propId) {
        this.propId = propId;
    }

    @Column(name = "DISPLAY_NAME", length = 128)
    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    @Override
    public String toString() {
        return "PropertyDisplay [id=" + id + ", resId=" + resId + ", resType=" + resType + ", propId=" + propId + ", displayName=" + displayName + "]";
    }

}
